import request from '@/utils/axios';
import appName from '@/api/appName';

/* 维护作业-银保通出单保费限额维护页面 */
// 查询分页
export function PAGE(params) {
  return request({
    url: appName.NB + '/maintain/bankfeemtc/page',
    method: 'get',
    params: params
  });
}

// 添加实体
export function ADD(params) {
  return request({
    url: appName.NB + '/maintain/bankfeemtc/add',
    method: 'post',
    data: params
  });
}

// 更新实体
export function UPDATE(params) {
  return request({
    url: appName.NB + `/maintain/bankfeemtc/update/${params.id}`,
    method: 'post',
    data: params
  });
}

// 更新实体
export function DELETE(params) {
  return request({
    url: appName.NB + `/maintain/bankfeemtc/delete/${params.id}`,
    method: 'post',
    data: null
  });
}

// 导出Excel
export function queryListToExcel(params) {
  return request({
    url: appName.NB + `/maintain/bankfeemtc/queryListToExcel`,
    method: 'post',
    data: params,
    responseType: 'blob'
  });
}